package com.member.server.mapper;

import com.member.server.entity.Record;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;

/**
 * @author gaojx1993
 * @version 1.0
 * @description AccountLogMapper
 * @since 2023/7/11 14:41
 */
@Mapper
public interface RecordMapper {

    List<Record> selectByMemberId(@Param("memberId") Long memberId);

    long insert(Record record);

    Record selectByIdAndType(@Param("id") Long id, @Param("type") Integer type);

    List<Record> selectByIds(@Param("ids") Collection<Long> ids);
}
